.history-list {
    height: 100%;
    display: flex;
    flex-direction: column;
    
    &__header {
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    &__new-btn {
        width: 100%;
        padding: 12px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s ease;
        
        &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        &:active {
            transform: translateY(0);
        }
    }
    
    &__new-icon {
        font-size: 16px;
        font-weight: bold;
    }
    
    &__content {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
    }
    
    &__empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #6b7280;
        text-align: center;
        
        &-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        p {
            margin: 4px 0;
            
            &:first-of-type {
                font-weight: 500;
                color: #374151;
            }
        }
        
        &-tip {
            font-size: 12px;
            opacity: 0.7;
        }
    }
    
    &__sessions {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    &__session {
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        
        &:hover {
            background-color: #f3f4f6;
            
            .history-list__delete-btn {
                opacity: 1;
            }
        }
        
        &--active {
            background-color: #eff6ff;
            border: 1px solid #dbeafe;
            
            .history-list__session-title {
                color: #1d4ed8;
                font-weight: 600;
            }
        }
    }
    
    &__session-content {
        flex: 1;
        min-width: 0;
    }
    
    &__session-title {
        font-size: 14px;
        font-weight: 500;
        color: #111827;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    &__session-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
        font-size: 11px;
        color: #6b7280;
    }
    
    &__session-date {
        &::after {
            content: '•';
            margin-left: 8px;
        }
    }
    
    &__session-count {
        // 样式已在上面定义
    }
    
    &__session-preview {
        font-size: 12px;
        color: #9ca3af;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    &__delete-btn {
        width: 20px;
        height: 20px;
        border: none;
        background: none;
        color: #9ca3af;
        cursor: pointer;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        opacity: 0;
        transition: all 0.2s ease;
        flex-shrink: 0;
        
        &:hover {
            background-color: #fee2e2;
            color: #dc2626;
        }
    }
}

// 滚动条样式
.history-list__content {
    &::-webkit-scrollbar {
        width: 4px;
    }
    
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 2px;
        
        &:hover {
            background: #9ca3af;
        }
    }
}